package com.itfreer.power.entity.user;

import java.io.Serializable;

import com.itfreer.form.dictionary.reflect.DictionaryField;

/**
 * 定义用户详细信息实体
 */
public class VUserRoleEntity implements Serializable {

	private static final long serialVersionUID = 3065523710938752286L;

	/**
	 * 帐号 唯一值
	 */
	private String userid;
	
	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 所属机构
	 */
	@DictionaryField(dictionaryName="p_organization", toFieldName="organizationName")
	private String organizationId;
	
	/**
	 * 所属机构
	 */
	private String organizationName;

	/**
	 * 所属部门
	 */
	@DictionaryField(dictionaryName="p_department", toFieldName="departmentName")
	private String departmentId;
	
	/**
	 * 所属部门
	 */
	private String departmentName;

	/**
	 * 所属岗位
	 */
	@DictionaryField(dictionaryName="p_operating_post", toFieldName="operatingPostName")
	private String operatingPostId;
	
	/**
	 * 所属岗位
	 */
	private String operatingPostName;

	/**
	 * 帐号
	 */
	private String accounts;
	
	/**
	 * 是否有效
	 */
	private Boolean valid = true;
	
	/**
	 * 角色集
	 */
	@DictionaryField(dictionaryName="p_role", toFieldName="roleNames")
	private String roles;
	
	/**
	 * 角色
	 */
	private String roleNames;

	/**
	 * 帐号 唯一值
	 */
	public String getUserid() {
		return userid;
	}

	/**
	 * 帐号 唯一值
	 */
	public void setUserid(String userid) {
		this.userid = userid;
	}

	/**
	 * 所属机构
	 */
	public String getOrganizationId() {
		return organizationId;
	}

	/**
	 * 所属机构
	 */
	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	/**
	 * 所属部门
	 */
	public String getDepartmentId() {
		return departmentId;
	}

	/**
	 * 所属部门
	 */
	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	/**
	 * 所属岗位
	 */
	public String getOperatingPostId() {
		return operatingPostId;
	}

	/**
	 * 所属岗位
	 */
	public void setOperatingPostId(String operatingPostId) {
		this.operatingPostId = operatingPostId;
	}

	/**
	 * 用户名
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 用户名
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}
	
	public String getAccounts() {
		return accounts;
	}

	public void setAccounts(String accounts) {
		this.accounts = accounts;
	}

	public Boolean getValid() {
		return valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public String getOperatingPostName() {
		return operatingPostName;
	}

	public void setOperatingPostName(String operatingPostName) {
		this.operatingPostName = operatingPostName;
	}

	/**
	 * 角色名称集
	 */
	public String getRoleNames() {
		return roleNames;
	}

	/**
	 * 角色名称集
	 */
	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}	
}
